package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.constant.MessageConstant;
import com.itheima.dao.CheckgroupCheckitemKeyMapper;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckgroupCheckitemKey;
import org.springframework.beans.factory.annotation.Autowired;

@Service(interfaceClass = CheckgroupCheckitemKeyService.class)
public class CheckjoinServiceimpl implements CheckgroupCheckitemKeyService {
    @Autowired
    private CheckgroupCheckitemKeyMapper checkgroupCheckitemKeyMapper;

    @Override
    public Result AddCheckjoin(CheckgroupCheckitemKey checkgroupCheckitemKey) {

            if (null !=checkgroupCheckitemKey){
                boolean b = checkgroupCheckitemKeyMapper.AddCheckjoin(checkgroupCheckitemKey);
                return new Result(b,null);
            }

        return null;
    }

    @Override
    public boolean deletejoin(int id) {


      return   checkgroupCheckitemKeyMapper.deletejoinGroup(id);
    }


}
